﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="projectgroup.aspx.cs" Inherits="Mocola.Net.Web.projectgroup" %>

<%@ Register Assembly="obout_Flyout2_NET" Namespace="OboutInc.Flyout2" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>CsLand Ams v1.0 - 中新置地档案管理系统</title>
    <meta name="description" content="CsLand Ams v1.0 - 中新置地档案管理系统" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <link rel="stylesheet" href="css/content.css" type="text/css" />
    <link rel="stylesheet" href="css/ui.css" type="text/css" />
    <link rel="stylesheet" href="css/sys.css" type="text/css" />
    <link rel="stylesheet" href="css/table.css" type="text/css" />
    <link rel="stylesheet" media="screen" href="css/vlaCal-v2.1.css" type="text/css" />
    <link rel="stylesheet" media="screen" href="css/vlaCal-v2.1-adobe_cs3.css" type="text/css" />
    <link rel="stylesheet" media="screen" href="css/vlaCal-v2.1-apple_widget.css" type="text/css" />
    <link rel="stylesheet" href="scripts/formcheck/theme/classic/formcheck.css" type="text/css"
        media="screen" />
    <!--[if IE]>
	    <script type="text/javascript" src="scripts/excanvas-compressed.js"></script>	
	    <style type="text/css"> html { overflow: auto; } </style>	
    <![endif]-->

    <script type="text/javascript" src="scripts/mootools-1.2-core.js"></script>
    <script type="text/javascript" src="scripts/mootools-1.2-more.js"></script>
    <script type="text/javascript" src="scripts/mocha.js"></script>
    <script type="text/javascript" src="scripts/mocola-funs.js"></script>
    <script type="text/javascript" src="scripts/tvChk.js"></script>
    <script type="text/javascript">

    function getNode(evt)
    {
         CheckEvent();
         evt1 = window.event ? window.event.srcElement : evt.target;
         if(evt1.tagName && evt1.tagName != "INPUT")
         {
            if(evt1.tagName == "IMG")
            {       
               return true;
            }
            else
            {
            return false;
            }
          }
     }
    </script>

</head>
<body style="background:#fff;">
    <form id="form1" runat="server">
    <div style="margin: 10px; line-height: 25px;">
        <div style="margin-bottom: 8px;">
            小组名称：<asp:TextBox ID="txtGroupName" runat="server"></asp:TextBox>
        </div>
        <div style="margin-bottom: 8px;">
            内部人员：<input type="button" class="btnzc" value="添加成员" id="btnUserSelect" />
        </div>
        <cc1:Flyout ID="SelectUser" runat="server" AttachTo="btnUserSelect" Position="BOTTOM_RIGHT">
            <div style="border: 1px solid #777777; background-color: #ffffff; text-align: left;
                width: 400px; height: 400px; font-size: 12px; padding: 8px;">
                选择人员
                <div style="background-color: #F5F5F5; border: 1px solid #91A0CB; margin-bottom: 5px;
                    padding: 10px; height: 320px; overflow: auto;">
                    <asp:TreeView ID="trDept" runat="server" ImageSet="Contacts" NodeIndent="30" ShowCheckBoxes="All"
                        ExpandDepth="2">
                        <ParentNodeStyle Font-Bold="True" ForeColor="#5555DD" />
                        <HoverNodeStyle Font-Underline="False" />
                        <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" />
                        <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
                            NodeSpacing="0px" VerticalPadding="0px" />
                    </asp:TreeView>
                </div>
                <div style="text-align: center;">
                    <asp:Button ID="btnOK" runat="server" Text="确定选择" CssClass="btnzc" OnClick="btnOK_Click" />
                </div>
            </div>
        </cc1:Flyout>
        <div style="height: 250px; margin-bottom: 10px; overflow: auto;border:1px solid #999;padding:5px">
            <table class="table2" cellspacing="1" style="margin-top: 5px; border: 1px #C1DAD7 solid;">
                <tr>
                    <th style="width:20%">
                        姓名
                    </th>
                    <th style="width:40%">
                        部门
                    </th>
                    <th style="width:30%">
                        Email
                    </th>
                    <th style="width:10%">
                        操作
                    </th>
                </tr>
               
                <asp:Repeater ID="rptGroup" runat="server" 
                    onitemdatabound="rptGroup_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# Eval("FullName")%>
                            </td>
                            <td>
                                <%# Eval("Name")%>
                            </td>
                            <td>
                                <%# Eval("Email")%>
                            </td>
                            <td style="text-align:center;">
                                 <asp:LinkButton ID="btnDelUser" runat="server" onclick="btnDelUser_Click">删除</asp:LinkButton>
                                <asp:HiddenField ID="hfUserID" runat="server" />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
               
            </table>
        </div> 
        <div>
            外部人员：
            <asp:TextBox ID="txtExtUser" TextMode="MultiLine" runat="server" Height="80px" Width="575px"
                Cssclass="inputbox"></asp:TextBox>
        </div>
        <div style="text-align: center; margin-top: 5px;">
            <asp:Button ID="btnSave" CssClass="btnzc" runat="server" Text="保存" 
                onclick="btnSave_Click" />
        </div>
    </div>
    </form>
</body>
</html>
